/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 17655
 * Date: 2025-07-30
 * Time: 22:27
 */
public class test3 {
    public boolean searchMatrix(int[][] matrix, int target) {
        for(int[] row:matrix){
            for(int col:row){
                if(col==target){
                    return true;
                }
            }
        }
        return false;
    }
}
